package com.siashan.toolkit.api.security.properties;

import lombok.Getter;
import lombok.Setter;

/**
 * 接口签名配置
 *
 * @author siashan
 * @version V1.0.1
 **/
@Setter
@Getter
public class SignProperties {
    /**
     * 是否启用接口请求验签
     */
    private boolean inSign;
    /**
     * 是否开启接口返回加签
     */
    private boolean outSign;
    /**
     * 签名类型<br>
     * MD5
     */
    private String type;

    /**
     * 加密key
     */
    private String key;
    /**
     * 签名字段存放位置<br>
     * Header
     * Body
     */
    private String storepath;

    /**
     * 签名算法公钥<br>
     * RSA2签名算法必填
     */
    private String pubKey;
    /**
     * 签名算法私钥<br>
     * RSA2签名算法必填
     */
    private String priKey;
}
